<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="java.util.List" %>
<%@ page import="com.yyyzzz.bean.Course" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="com.yyyzzz.service.courseService" %>
<%@ page import="com.yyyzzz.service.impl.courseServiceimpl" %><%--
  Created by IntelliJ IDEA.
  User: HP
  Date: 2021/11/25
  Time: 14:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>课程信息</title>
    <link href="courseInfo/courseInfo.css" rel="stylesheet" type="text/css">
</head>
<body>
<header>
    <a href="#" class="logo">学生选课系统</a>
    <ul>
        <li>
            <a href="courseDetail.jsp" >课程信息</a>

        </li>
        <li><a href="addCourse.jsp" >增加课程</a>
        </li>
        <li><a href="#" class="active">修改课程</a>
        </li>
        <li><a href="#">查看个人信息</a>
        </li>
    </ul>
</header>
<section>
    <img src="Login/stars.png" id="stars">
    <img src="Login/moon.png" id="moon">
    <img src="Login/mountainsbehind.png" id="mountains_behind">
    <img src="Login/mountainsfront.png" id="mountains_front">
</section>
<div class="main1">
    <h1>修改课程信息</h1>
    <c:forEach items="${courseList0}" var="course" >

    <form action="updateCourseServlet" method="post">
        <div> 课程号<input readonly value="${course.courseId}" name="courseId" type="text"
                        style="margin-left: 17px;margin-bottom:5px; margin-top: 30px;"></div>
        <div> 课程名<input value="${course.courseName}" name="courseName" type="text"
                        style=" margin-left: 17px;margin-bottom:5px;"></div>
        <div> 任课教师<input value="${course.courseTeacher}" name="courseTeacher" type="text" style="margin-bottom: 5px; ">
        </div>
        <div> 教室<input value="${course.classroom}" name="classroom" type="text"
                       style=" margin-left: 32px;margin-bottom:5px;"></div>
        <div> 学分<input value="${course.credit}"name="credit" type="text" style=" margin-left: 32px;margin-bottom:5px;"></div>
        <div>
            <input type="submit" value="确认"><a href="updateCourseServlet" style="color:rosybrown "></a>
        </div>
    </form>
    </c:forEach>
</div>

</body>
</html>
